package com.jk.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.ToString;

import java.util.Date;
import java.util.List;

/**
 * 员工信息表
 * @TableName tem_user
 */
@TableName(value ="tem_user")
@Data
@ToString
public class TemUser implements java.io.Serializable {
    private static final long serialVersionUID = -6265018495159464656L;
    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Excel(name = "编号")
    private Integer id;

    /**
     * 账号
     */
    @Excel(name = "账号")
    private String userName;

    /**
     * 密码
     */
    @Excel(name = "密码")
    private String password;

    /**
     * 姓名
     */
    @Excel(name = "姓名")
    private String realName;

    /**
     * 工作邮箱
     */
    @Excel(name = "邮箱")
    private Integer email;

    /**
     * 手机号
     */
    @Excel(name = "手机号")
    private String phone;

    /**
     * 创建时间
     */
    //自动填充插入时间注解
    @TableField(fill = FieldFill.INSERT)
    @Excel(name = "创建时间",exportFormat = "yyyy-MM-dd HH:mm:ss",height = 20, width = 38,importFormat ="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 修改时间
     */
    @Excel(name = "修改时间",exportFormat = "yyyy-MM-dd HH:mm:ss",height = 20, width = 38,importFormat ="yyyy-MM-dd HH:mm:ss")
    private Date modifyTime;
    /**
     * 工号
     */
    @Excel(name = "工号")
    private Integer workNumber;

    /**
     * 逻辑删除(0存在1删除)
     */
    @TableLogic(value = "0",delval = "1")
    private String isDelete;


    @TableField(exist = false)
    public List<SysMenu> menus; //用户对应的菜单集合


    @TableField(exist = false)
    private String addPassword;// 添加密码

}